package fun.hijklmn.magic.common.enums;

/**
 * @Description
 * @Author fs
 * @Date 2021/5/6 10:14
 * @Version 0.0.1-SNAPSHOT
 **/
public enum ResponseCodeEnum {

    SUCCESS(200, "成功"),
    ERROR(201, "失败"),

    INVALID_PARAM(202, "无效参数"),

    PERMISSION_DENIED(203, "没有访问权限"),

    SESSION_EXPIRED(701, "会话超时"),

    ACCOUNT_LOCKED(702, "账号被冻结"),

    ;

    private Integer code;

    private String message;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return code;
    }

    public String message() {
        return message;
    }

}
